package org.dxy.infrastructure.persistent.db.mybatispuls.po.query;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 设备维护历史查询实体
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EquipmentMaintenanceViewPo {
    /** 设备唯一标识 */
    private Long equipmentId;
    /** 维护记录列表 */
    private List<MaintenanceRecord> maintenanceRecords;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class MaintenanceRecord {
        /** 维护时间 */
        private LocalDateTime maintenanceTime;
        /** 维护人员 */
        private String operator;
        /** 维护备注或内容 */
        private String note;
    }
}